#ifndef _IM_SERVER_GROUP_ID_CREATOR_
#define _IM_SERVER_GROUP_ID_CREATOR_

#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include "database/simple_db_pool.h"
#include "base/singleton.h"
#include "base/config_reader.h"

namespace imserver {

class GroupIdCreator : public base::Singleton<GroupIdCreator> {
public:

  int64_t createGroupId();

private:
  friend class base::Singleton<GroupIdCreator>;
  GroupIdCreator() {}

  mutable boost::mutex mutex_;
};

}

#endif // _IM_SERVER_GROUP_ID_CREATOR_
